package com.szrt.oa.user.controller;

import java.util.HashMap;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.szrt.oa.user.entity.UserEntity;
import com.szrt.oa.user.service.UserService;

@Controller
@RequestMapping("/user")
public class UserController {
	
	 Map<String,Object> map=new HashMap<String,Object>();
	
	@Autowired
	private UserService service;
	
//	http://localhost:8090/java-oa/user/findMenuByid.do?phone=15766472116
	@RequestMapping("/findMenuByid")
	@ResponseBody
	public Map<String,Object> findMenuByid(UserEntity entity){
		Map<String, Object> map = service.findMenuByid(entity);
		return map;
	}

//	public Map<String, Object> login(UserEntity entity);

}
